package xcmg.device.dao.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.DataDictionaryDO;
import xcmg.device.service.vo.basic.DataDictionaryVO;
import xcmg.device.service.vo.basic.DictionaryRelationVO;

import java.util.List;
@Mapper
public interface DataDictionaryMapper {

    List<DataDictionaryDO> list(DataDictionaryVO record);

    List<DictionaryRelationVO> listAll(DictionaryRelationVO record);


    List<DictionaryRelationVO> searchList(DictionaryRelationVO record);

    int count(DataDictionaryVO record);

    int countChild(@Param("id")String id);

    int add(DataDictionaryDO entity);

    int remove(@Param("ids") List<String> ids);

    int update(DataDictionaryDO record);

    DataDictionaryDO item(@Param("id")String id);

    DataDictionaryDO itemByCode(@Param("parentCode") String parentCode,@Param("code") String code);

    DataDictionaryDO showItemByCode(@Param("parentCode") String parentCode,@Param("code") String code);



}